package com.zjcode.cdcer.mapper;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.ZjcodeFollowUpCondition;
import com.zjcode.cdcer.model.ZjcodeFollowUpConditionOffice;
import com.zjcode.cdcer.model.ZjcodeFollowUpListOffice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author ZQM
 * @date 2023/10/9 15:02
 */
@Mapper
public interface FollowUpListOfficeMapper {

    Integer add(@Param("follow") ZjcodeFollowUpListOffice follow);

    void addFollowUpOffice(@Param("followUpConditionList") List<ZjcodeFollowUpConditionOffice> followUpConditionList);

    List<LinkedHashMap<String, Object>> selList(@Param("pageData") PageData pageData);

    Map<String, Object> selById(@Param("id") String id);

    List<ZjcodeFollowUpConditionOffice> selConditionByFollowUpListOfficeId(@Param("followUpListOfficeId") String followUpListOfficeId);

    void followUpListOfficeReturn(@Param("id") String id);

    void followUpListConditionOfficeReturn(@Param("followUpListOfficeId") String followUpListOfficeId);

    List<LinkedHashMap<String, Object>> queryAllExportData(@Param("extFlag") String extFlag, @Param("ids") List<String> ids,
                                                           @Param("pageData") PageData pageData, @Param("idsData") Object idsData);

    int getOfficalCountByInitId(@Param("initId") String initId);

    void addFollowUpOfficeCondition(@Param("followUpConditionList") List<ZjcodeFollowUpCondition> followUpConditionList);

}
